package cn.no7player.service;
import java.util.List;
import cn.no7player.mapper.UserMapper;
import cn.no7player.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User getUserInfo(){
        //User user=userMapper.findUserInfo();
        //User user=null;
    	User user = userMapper.selectByPrimaryKey("zhangyongfeng");
        return user;
    }

    
    public List<User> getUserInfoList(){
        //User user=userMapper.findUserInfo();
        //User user=null;
    	List<User> list = userMapper.selectAll();
    	
        return list;
    }
}
